/*
 * Copyright (C), 2017, 上海云首信息科技有限公司
 *
 * Author: 邓哲航
 * Date: 2018/5/17 上午12:31
 * History:
 * <author>    <time>    <version>    <desc>
 *
 */
package com.leaptocloud.easycloud.demo.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author 邓哲航
 * @see
 * @since 2.3.8
 */
public class XAuthToken implements AuthenticationToken {

    private String token;

    public XAuthToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return this.token;
    }

    @Override
    public Object getCredentials() {
        return this.token;
    }
}
